import styles from './index.module.scss'

const Count = ({onPlus, onMinus, count}) => {
    return (
        <div className={styles["goods-count"]}>
            <span className="minus" onClick={onMinus}>-</span>
            <span className="count">{count}</span>
            <span className="plus" onClick={onPlus}>+</span>
        </div>
    )
}

export default Count
